package com.github.chirspan.xaas.mybatis.util.tree;

import com.baomidou.mybatisplus.annotation.TableField;
import com.github.chirspan.xaas.mybatis.model.BaseModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author chenpan
 * @ClassName: Tree
 * description:
 * @date 2018-05-15 10:17
 */
@Data
public class Tree<T extends Tree> extends BaseModel {

    @TableField(exist = false)
    private List<T> children;

    @TableField(value = "parent_id")
    @ApiModelProperty(value = "父ID")
    private String parentId;
}
